#ifndef __TKEY_H
#define __TKEY_H

#include "sys.h"

extern volatile uint16_t tpad_default_val;
							   	    
void TPAD_Reset(void);
uint16_t  TPAD_Get_Val(void);
uint16_t  TPAD_Get_MaxVal(uint8_t n);
uint8_t   TPAD_Init(uint8_t psc);
uint8_t   TPAD_Scan(uint8_t mode);
void TIM5_CH2_Cap_Init(uint16_t arr,uint16_t psc);   

#endif
